package cn.mall.framework.biz.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class BusinessException extends Exception{

	private static final long serialVersionUID = 1L;
	
	private String errCode;
	
	private String errInfo;
	
	public BusinessException(){
		
	}
	
	public BusinessException(String errMsg){
		super(errMsg);
		this.errInfo = errMsg;
	}
	
	public BusinessException(String errCode, String errMsg){
		super(errMsg);
		this.errCode = errCode;
		this.errInfo = errMsg;
	}
	
	public BusinessException(String errMsg, Throwable throwable){
		super(errMsg,throwable);
		this.errInfo = errMsg;
	}
	
	public BusinessException(String errCode, String errMsg, Throwable throwable){
		super(errMsg,throwable);
		this.errCode = errCode;
		this.errInfo = errMsg;
	}
	
}
